package com.itheima.demo05;

/**
 * @author Zhang_Han
 * @version 1.0
 * @date 2020/7/13 19:03
 */
public class Desk {
    //桌子类;
    //先判断有没有包子 ;
    private boolean flag;
    private int count;
    private final Object Lock = new Object();

    public Desk() {
        //初始化数据;
        this(false,10);
    }

    public Desk(boolean flag, int count) {
        this.flag = flag;
        this.count = count;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Object getLock() {
        return Lock;
    }
}
